<?php
/**
 * Language_Exception
 * 
 * 作者:  姚刚 (yaogang@the9sense.com)
 * 创建时间: 2011-03-03 11:48:33
 * 修改记录: 
 * 
 * $Id: Exception.php 4 2011-03-10 16:39:54Z coosuu@gmail.com $
 */

class Language_Exception extends Exception {

    public function __construct($message, $code = 0) {
        if (is_a($message, 'Exception')) {
            parent::__construct($message->getMessage(), intval($message->getCode()));
        } else {
            parent::__construct($message, intval($code));
        }
    }

}
